package com.mz.mattress.admin.api.merchant;

import com.mz.mattress.admin.service.CityService;
import com.mz.mattress.api.common.Constants;
import com.mz.mattress.api.common.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping(Constants.MERCHANT_PATH + "city")
public class CityController {

    @Autowired
    private CityService cityService;

    @GetMapping("/listAll")
    public Result<Map<String, List<String>>> listAll() {
        return cityService.listAll();
    }


}
